<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>销户提取进度查看</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../css/news.css" media="all" />
	<script src="../../layui/js/angular.js"></script>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="../../layui/layui/GetPath.js"></script>
	<script src="../../layui/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../layui/js/fy.js"></script>
	<script type="text/javascript" src="../../layui/layui/layer.ext.js"></script>
	<script type="text/javascript" src="../../layui/lay/modules/layer.js"></script>
	<!-- JQuery 的遮罩层 -->
	<style type="text/css">     
    .mask {       
            position: absolute; top: 0px; filter: alpha(opacity=60); 
            z-index: 1002; left: 0px;              
			background:url(../../layui/layui/img/jz.gif) no-repeat center rgba(0,0,0,0.5) ;
		  	background-size:30px 30px;
			background-repeat: no-repeat;
			background: 
        }     
	</style>   
</head>
<body class="childrenBody">
	<div align="center" id="mask" class="mask"></div>  
	<blockquote class="layui-elem-quote title"><input onclick="sx()" type="button" class="layui-btn layui-btn-primary" value="查&nbsp;&nbsp;&nbsp;&nbsp;询"></blockquote>
	<div ng-app="myApp" ng-controller="customersCtrl" align="center">
	<div class="layui-form news_list">
	  	<table class="layui-table">
				<tr style="background-color:#f1f1f1">
					<td>姓名</td>
					<td>单位账号</td>
					<td>个人账号</td>
					<td>日期</td>
					<td>状态</td>
					<td>备注</td>
					<td>操作</td>
				</tr> 
		    	<tr ng-repeat="x in names" align="center" >
		    	<td >{{ x.XINGMING}}</td>
				<td >{{ x.DWZH }}</td>
				<td >{{ x.GRZH }}</td>
				<td >{{ x.RQ }}</td>
				<td ng-if="x.ZT == '18'">处理失败</td><td ng-if="x.ZT != '18'">处理中</td>
				<td >{{ x.BZ }}</td>
				
				<td ng-if="x.ZT == '18'">
					<a class="layui-btn layui-btn-danger layui-btn-xs" ng-click="scjl($index)">删除</a>
				</td>
			    <td ng-hide="true">{{x.ID}}</td>
			</tr>
		</table>
		</div>
	</div>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function s(){     
        $("#mask").css("height",$(document).height());     
        $("#mask").css("width",$(document).width());     
        $("#mask").show();     
	    }  
	    //隐藏遮罩层  
	    function h(){     
	          
	        $("#mask").hide();     
	    }  
	</script>
	<script type="text/javascript" src="../../layui/layui/layui.js"></script>
	<script>
		layui.use('layer', function(){
  			var layer = layui.layer;
		});              
	</script>
	<script>
			var a;
			var app = angular.module('myApp', []);
		    app.controller('customersCtrl', function($scope, $http) {
		    s();
			$http.get(getPath() + "/wsyyt/xhtqckcontrller/test").then(
					function(res) {
						$scope.data = res.data.data;//自己打断点看格式:[{},{}]
						h();
							if(res.data.msg==null){
								
								 	layer.msg("登陆失效请重新登陆");
									setTimeout(function () {
										window.top.location.href=res.data;
									}, 1500);
									return;
								 
							}else if(res.data.code==1){
									//layer.msg('提示：'+res.data.CW,{icon: 5});	
									layer.alert('提示：'+res.data.CW, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});
									return null;
								}else{
									console.log(res);	
									a = res.data.CNT;
									feny($scope.data.RETDATA);
								}
								
						});	
	$scope.scjl=function(index){
	if($scope.names[index].ZT==18){
	 $scope.params = {
		ID : $scope.names[index].ID
	 };
	 s();
	 $http({
	   url:getPath() + "/wsyyt/xhtqckcontrller/test1",
	   method:'post',
	   params:$scope.params
	 }).then(function(res) {
	 	h();
	 	
		if(res.data.msg==null){
								
								 	layer.msg("登陆失效请重新登陆");
									setTimeout(function () {
										window.top.location.href=res.data;
									}, 1500);
									return;
								 
							}else if(res.data.code==0){
		  //layer.msg('提示：还款已受理、请等待审核',{icon: 6});
		  layer.alert('提示：此记录删除成功', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 6    // icon
								      ,yes:function(){
										window.location.href=window.location.href;
								     }});
		}else{
		   //layer.msg('提示：'+res.data.CW,{icon: 5});
		   layer.alert('提示：'+res.data.CW, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								      ,yes:function(){
										window.location.href=window.location.href;
								     }});
			
		}
		});
	}else{
			 layer.alert('提示：此记录无法删除', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								      ,yes:function(){
										window.location.href=window.location.href;
								     }});
	}
	};
});	
function sx(){
	window.location.href=window.location.href;
}
</script>
</body>
</html>